/**
 * 
 */
package com.qdairlines.service.user.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.qdairlines.dao.user.RolePermissionMapper;
import com.qdairlines.entity.user.RolePermission;
import com.qdairlines.entity.user.RolePermissionDto;
import com.qdairlines.service.base.impl.BaseServiceImpl;
import com.qdairlines.service.user.RolePermissionService;

/**
 * @author pangyannan
 * @date 2017年3月8日
 * @company QingDao Airlines
 * @description
 */
@Service
public class RolePermissionServiceImpl extends BaseServiceImpl<RolePermission,Integer> implements RolePermissionService {

    @Autowired
    private RolePermissionMapper rolePermissionMapper;
    
    @Autowired
	public void setBaseMapper() {
		super.setBaseMapper(rolePermissionMapper);
	}

	@Override
	public List<RolePermissionDto> listRolePermissionDtoByRoleId(Integer roleId,String isRelated) {
		return rolePermissionMapper.listRolePermissionDtoByRoleId(roleId,isRelated);
	}

}
